package org.huangrui.design.pattern.factory.method;

public class TestVehicle {
    public static void main(String[] args) {
        BikeFactory bf = new BikeFactory();
        Bike bike = bf.getVehicle();
        bike.drive();

        System.out.println("=====================");
        CarFactory cf = new CarFactory();
        Car car = cf.getVehicle();
        car.drive();
    }

}
